package com.zhaoyue.jvm;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 2017/1/23
 * Time: 14:01
 * To change this template use File | Settings | File Templates.
 */
public class Parent {

    public static int A = 1;

    static {
        A = 2;
    }

    public static int C = 2;

    static {
        A = 3;
    }

    public static int D = C + A;




    static class Sub extends Parent {
        public static int B = D;
    }

    public static void main(String[] args) {
        System.out.println(Sub.B);
    }
}
